<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
cfc('core')->checklogin();
$return=array();

if($_RQ['op']=='main'){
	$return['list']=array();
	$return['params']['type']=0;
	exi($return);
}
if($_RQ['op']=='list'){
	$type=intval($_RQ['type']);
	$return['statuss']=array(
			'0'=>'待审核',
			'1'=>'已打款',
			'2'=>'审核不通过',
	);
	$table='jy_peiorder_cashlog';	
	$return['type_array']=array('提现到微信钱包','提现到支付宝','提现到银行卡');
	$params=array('uniacid'=>$_SESSION['uniacid'],'mid'=>$_SESSION['uid']);
	$pindex = max(1, intval($_RQ['page']));
	$psize = 10;
	$list=pdo_getslice($table,$params,array($pindex,$psize),$total,array(),'','id desc');
	if($list){
		foreach($list as &$item){
			$item['typetitle']=$return['type_array'][$item['paytype']];
			$item['statustitle']=$return['statuss'][$item['status']];
			$item['createtime']=date('Y/m/d H:i:s',$item['apply_time']);
		}
	}
	$return['list']=$list?$list:array();
	exi($return);
}